tests: Stop using inventory crate
authorColin Walters <walters@verbum.org>
Thu, 27 Jan 2022 21:37:30 +0000 (16:37 -0500)
committerColin Walters <walters@verbum.org>
Fri, 11 Mar 2022 19:53:29 +0000 (14:53 -0500)
commitb6d1119f912059b4851e1c37941eb176f8b5b192
treee1fed145258b03b360014885f6a7a9c6232a4abe
parent2f11977da52d0ad01a3fba3e680d6eda92210f11
tests: Stop using inventory crate

I was reading this thread
https://internals.rust-lang.org/t/from-life-before-main-to-common-life-in-main/16006/30
and that reminded me about this code, which it turns out actually
doesn't compile with my default local cargo config:
```
$ cat ~/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Ctarget-cpu=native", "-C", "link-arg=-fuse-ld=lld"]

[profile.release]
incremental = true
$ cargo b
...
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-4ca8e730f9dc6ffc.10325uqlhkyr5uol.rcgu.o" "/var/srv/walte"
  = note: ld.lld: error: undefined symbol: __start_linkme_NONDESTRUCTIVE_TESTS
          >>> referenced by 22nn09lfsklfqvyy
          >>>               /var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-4ca8e730f9dc6ffc.22nn09lfsklfqvyy.rcgu.o:(ostree_tes)

```

For now let's just go back to having a static list of functions.
We don't have *too* many of those.
tests/inst/Cargo.toml
tests/inst/itest-macro/Cargo.toml [deleted file]
tests/inst/itest-macro/src/itest-macro.rs [deleted file]
tests/inst/src/destructive.rs
tests/inst/src/insttestmain.rs
tests/inst/src/repobin.rs
tests/inst/src/sysroot.rs
tests/inst/src/test.rs